export default [
  { exact: true, path: '/login', component: '@/pages/login' },
  { exact: true, path: '/', redirect: '/blog/custom/overview' },
  {
    path: '/blog',
    component: '@/layouts/custom/index',
    routes: [
      {
        exact: true,
        path: '/blog',
        component: '@/pages/custom/article-overview',
      },
      {
        exact: true,
        path: '/blog/custom/overview',
        component: '@/pages/custom/article-overview',
      },
      {
        exact: true,
        path: '/blog/custom/article',
        component: '@/pages/custom/article',
      },
      {
        exact: true,
        path: '/blog/custom/article/:id',
        component: '@/pages/custom/article-detail',
      },
    ],
  },
  {
    path: '/administrators',
    component: '@/layouts/admin/index',
    wrappers: ['@/wrappers/auth'],
    routes: [
      // { exact: true, path: '/administrators', component: '@/pages/welcome' },
      {
        exact: true,
        path: '/administrators/admin/welcome',
        component: '@/pages/welcome',
      },
      {
        exact: true,
        path: '/administrators/admin/menu',
        component: '@/pages/menu',
      },
      {
        exact: true,
        path: '/administrators/admin/article',
        component: '@/pages/article/list',
      },
      {
        exact: true,
        path: '/administrators/admin/article/detail',
        component: '@/pages/article/detail',
      },
    ],
  },
  { exact: true, path: '*', component: '@/pages/404' },
];
